\hypertarget{a00046}{}\section{E\+:/knet-\/git/knet/knet/address\+\_\+api.h 文件参考}
\label{a00046}\index{E\+:/knet-\/git/knet/knet/address\+\_\+api.\+h@{E\+:/knet-\/git/knet/knet/address\+\_\+api.\+h}}
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \hyperlink{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}{address\+\_\+get\+\_\+ip} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address)
\begin{DoxyCompactList}\small\item\em 取得\+I\+P \end{DoxyCompactList}\item 
int \hyperlink{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}{address\+\_\+get\+\_\+port} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address)
\begin{DoxyCompactList}\small\item\em 取得port \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}{}\index{address\+\_\+api.\+h@{address\+\_\+api.\+h}!address\+\_\+get\+\_\+ip@{address\+\_\+get\+\_\+ip}}
\index{address\+\_\+get\+\_\+ip@{address\+\_\+get\+\_\+ip}!address\+\_\+api.\+h@{address\+\_\+api.\+h}}
\subsubsection[{address\+\_\+get\+\_\+ip}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ address\+\_\+get\+\_\+ip (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address}
\end{DoxyParamCaption}
)}\label{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}


取得\+I\+P 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 有效的指针} & I\+P字符串 \\
\hline
{\em 0} & 管道连接未建立 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}{}\index{address\+\_\+api.\+h@{address\+\_\+api.\+h}!address\+\_\+get\+\_\+port@{address\+\_\+get\+\_\+port}}
\index{address\+\_\+get\+\_\+port@{address\+\_\+get\+\_\+port}!address\+\_\+api.\+h@{address\+\_\+api.\+h}}
\subsubsection[{address\+\_\+get\+\_\+port}]{\setlength{\rightskip}{0pt plus 5cm}int address\+\_\+get\+\_\+port (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address}
\end{DoxyParamCaption}
)}\label{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}


取得port 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 有效的端口号} & 端口号 \\
\hline
{\em 0} & 管道连接未建立 \\
\hline
\end{DoxyRetVals}
